package cn.edu.cdu.group4nb.service.impl;

import cn.edu.cdu.group4nb.mapper.EmployerMapper;
import cn.edu.cdu.group4nb.mapper.MyPositionMapper;
import cn.edu.cdu.group4nb.po.Position;
import cn.edu.cdu.group4nb.service.EmployerService;
import cn.edu.cdu.group4nb.service.PositionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class PositionServiceImpl implements PositionService {
    @Autowired
    private MyPositionMapper myPositionMapper;

    @Override
    public List<Map<String, Object>> selectPosition() {
        return myPositionMapper.selectPosition();
    }

    @Override
    public Boolean insertPosition(Position position) {
        return myPositionMapper.insertPosition(position);
    }

    @Override
    public Boolean delPosition(int[] position_id) {
        return myPositionMapper.delPosition(position_id);
    }

    @Override
    public Boolean updPosition(Position position) {
        return myPositionMapper.updPosition(position);
    }

    @Override
    public List<Map<String, Object>> selectPositionById(Position position) {
        return myPositionMapper.selectPositionById(position);
    }
}
